package com.wkl.config.aspects.demo01;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 启用Aspcetj自动代理
 * 注解方式：
 * '    @EnableAspectJAutoProxy
 * XML文件配置方式：
 *      xmlns:aop="http://www.springframework.org/schema/aop"
 *      xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd"
 *      <aop:aspectj-autoproxy />
 */
@Configuration
@ComponentScan(basePackages = {
        "com.wkl.service",
        "com.wkl.config.aspects"
})
@EnableAspectJAutoProxy
public class AopConfig {
}

